<!DOCTYPE html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>test_closure</title>
  
</head>
<body>
    <span id='12' onclick= 'change()'><img src='rsc/11.jpg'/></span>
    <span id='13' onclick= 'change()'><img src='rsc/22.jpg'/></span>
</body>
   <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
    <script type="text/javascript">
   function change () {
    alert("123");
       var span=$('#12');
       console.log(span);
         // getElementById("12").innerHTML("<img src=\'rsc/33.jpg\'/>");
         // $('#12').html("<img src=\'rsc/33.jpg\'/>");
         $('#12').html("<img src=\'rsc/33.jpg\'/>");
       console.log(span);
         

                   
   }

    </script>
